package com.fzz.service;

import com.fzz.domain.View;
import com.github.pagehelper.PageInfo;
import org.springframework.data.relational.core.sql.In;
import org.springframework.stereotype.Service;
import org.springframework.ui.Model;

import java.util.List;

@Service
public interface ViewService {

    //添加视频
    public void addView(View view);

    //导入视频
    public List<View> loadView();

    //分页查询视频
    public PageInfo<View> selectViewWithPage(Model model,Integer id,String viewName, Integer page, Integer count);

    //通过id修改视频信息
    public Integer updateViewInfoById(View view);

    //根据id删除视频
    public Integer deleteViewById(Integer id);

    public PageInfo<View> selectViewWithPageShow(Model model, Integer page, Integer count);
}
